
import 'package:provider_demo/bean/UserData.dart';
import 'package:provider_demo/net/service_api.dart';

class ApiRespository{
     // 只是举例
      static Future login(String name, String passWord) async{
           var params  = {"name":name ,"password": passWord};
           var response = await http.post<Map>("login",data: params);
            UserData  user  = UserData.fromJson(response.data);
            return user;
      }
}

